export default {
  getWidgets:{
    url: '/publics/widget/list',
    require:['token','clientid']//page, size(选)、key(选，根据title或code模糊查询)、enabled(选)、sportId(选)
  },
  getWidget:{
    url: '/publics/widget/get',
    require:['token','clientid']//参数：id/code
  },
  createWidget:{
    url:'/publics/widget/create',
    require:['token','clientid','title']//config(选)、code(选)、discretion(选)
  },
  updateWidget:{
    url:'/publics/widget/update',
    require:['token','clientid','id']//title(选)、config(选)、code(选)、enabled(选)、discretion(选)
  },
  deleteWidget:{
    url:'/publics/widget/delete',
    require:['token','clientid']//参数：id/code
  },
//  type

  createWidgetType:{
    url:'/publics/widgetType/create',
    require:['token','clientid']//name、code(选)、data(选)、departmentCode
  },
  updateWidgetType:{
    url:'/publics/widgetType/update',
    require:['token','clientid']//id、name(选)、code(选)、data(选)、enabled(选)
  },
  getWidgetType:{
    url:'/publics/widgetType/get',
    require:['token','clientid']
  },
  getWidgetTypeList:{
    url:'/publics/widgetType/list',
    require:['token','clientid']
  },
  deleteWidgetType:{
    url:'/publics/widgetType/delete',
    require:['token','clientid']
  },
}
